package com.uyii.springbootredis.model;

import com.redis.om.spring.annotations.Document;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.redis.core.index.Indexed;

@Data
@Document
public class Article {
    @Id
    @Indexed
    private String id;

    @Indexed
    private String title;

    @Indexed
    private String content;
}